package com.zzzyh.forumsystemclient.dao;

import com.zzzyh.forumsystemclient.model.User_User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface User_UserMapper {
    int insert(User_User row);

    int insertSelective(User_User row);

    User_User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User_User row);

    int updateByPrimaryKey(User_User row);

    List<Long> getContacts(Long userId);

    List<Long> getFollowers(Long userId);

    Integer getRelationship(@Param("user1Id") Long user1Id, @Param("user2Id") Long user2Id);

    void updateRelationship(@Param("user1Id") Long user1Id, @Param("user2Id") Long user2Id, @Param("relationship") int relationship);
}